package res;

import java.util.Collection;
import java.util.List;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLProfile;

import agents.TrafficLightAgent;

public class Util {
	private static final Random rng = new Random(System.currentTimeMillis());
	
	public static Random getRandom() {
		return rng;
	}
	
	public static class OpenGL {
		public static GLProfile glprofile = null;
		public static GLCapabilities glcaps = null;
	}
	
	public static class Simulation {
		public static long maxRedTime = 0;
		public static long minGreenTime = 0;
		public static long refreshTime = 0;
		public static int flowRate = 0;
		public static int flowModif = 0;
		public static int flowInitial = 0;
		
		public static List<TrafficLightAgent> agents = null; 
		
		public static final ExecutorService scheduler = Executors.newCachedThreadPool();
	}
}
